// 计算vw值
@function Vw($number, $UIViewWidth: 1920) {
  @return ($number/$UIViewWidth)*100+vw
}

;
//计算vh值
@function Vh($number, $UIViewHeight: 1080) {
  @return ($number/$UIViewHeight)*100+vh
}

;
//弹出框公共样式
@mixin confirmWrap {
  font-size: 1.8rem;
  .ant-confirm {
    width: 500px !important;
    top: 30vh;
    .ant-modal-content {
      height: 282px;
      .ant-confirm-content {
        text-align: center;
        font-size: 1.8rem;
        color: #666666;
        margin-left: 0;
        margin-top: 0;
      }
      .ant-modal-body {
        padding-top: 86px;
      }
    }
    .ant-confirm-btns {
      margin-top: 55px;
      float: none;
      text-align: center;
      padding-bottom: 3vh;
    }
    .ant-btn {
      font-size: 1.8rem;
      color: white;
      padding: 0 2vw;
      background-color: transparent;
      border-color: transparent;
      background-image: url('/assets/common/取消底.png');
      background-size: 100% 100%;
      width: Vw(120);
      height: Vh(40);
    }
    .ant-btn-primary {
      margin-left: 3vw;
      background-image: url('/assets/common/确定底.png');
      background-size: 100% 100%;
      border-color: transparent;
    }
  }
}

@mixin infoWrap {
  font-size: 1.8rem;
  .ant-confirm {
    width: 500px !important;
    top: 30vh;
    .ant-modal-content {
      height: 282px;
      .ant-confirm-content {
        text-align: center;
        font-size: 1.8rem;
        color: #666666;
        margin-left: 0;
        margin-top: 0;
      }
      .ant-modal-body {
        padding-top: 86px;
      }
    }
    .ant-confirm-btns {
      margin-top: 55px;
      float: none;
      text-align: center;
      padding-bottom: 3vh;
    }
    .ant-btn {
      font-size: 1.8rem;
      color: white; // background: #a59b95;
      // border-color: #a59b95;
      padding: 0 2vw;
    }
    .ant-btn-primary {
      background-color: white;
      background-image: url('/assets/common/确定底.png');
      border-color: transparent;
      background-size: 100% 100%;
    }
  }
}

.newPatientPage {
  /deep/.ant-modal {
    width: 900px !important;
    top: 4vh;
    .ant-modal-footer {
      display: none;
    }
    .ant-modal-body {
      padding: 0;
      .mubanContent {
        position: relative;
        width: 100%;
        height: 460px;
        h1 {
          line-height: 60px;
          padding-left: 20px;
          font-size: 22px;
          color: #424242;
          background: url('/assets/patient/完善信息底.png');
          background-repeat: no-repeat;
          background-size: 100% 60px;
        }
        ul {
          width: 100%;
          height: 300px;
          margin: 20px;
          padding-top: 28px;
          box-sizing: border-box;
          background: url('/assets/patient/个人信息底.png');
          background-repeat: no-repeat;
          background-size: 860px 300px;
          li {
            float: left;
            width: 200px;
            height: 40px;
            line-height: 40px;
            margin: 0 42px 28px 42px;
            border: 1px solid #c2c2c2;
            border-radius: 4px;
            font-size: 18px;
            color: #666;
            text-align: center;
            cursor: pointer;
          }
          .active {
            border: none;
            background: #fb853d;
            color: #fff;
          }
        }
        p {
          padding-left: 44px;
          font-size: 16px;
          color: #fe7827;
        }
        button {
          position: absolute;
          left: 390px;
          bottom: 20px;
          width: 120px;
          height: 40px;
          line-height: 40px;
          font-size: 18px;
          color: #fff;
          background: url('/assets/common/确定底.png');
          background-repeat: no-repeat;
          background-size: 120px 40px;
        }
      }
    }
    .ant-modal-close {
      display: none;
    }
  }
}

// loading图片
.loadingPic {
  display: block;
  width:200px;
  height:200px;
//   animation: loading 1s linear infinite;
  position: absolute;
  left: 50%;
  top: 50%;
  margin:-100px 0 0 -100px;
}

@keyframes loading {
  0% {
    transform: rotateZ(0deg);
  } //   25% {
  //     transform: rotateZ(180deg);
  //   }
  50% {
    transform: rotateZ(180deg);
  } //   75% {
  //     transform: rotateZ(270deg);
  //   }
  100% {
    transform: rotateZ(360deg);
  }
}